import request from '@/utils/request'

// 查询检测订单列表
export function listOrder(query) {
  return request({
    url: '/order/order/list',
    method: 'get',
    params: query
  })
}

// 查询检测订单详细
export function getOrder(id) {
  return request({
    url: '/order/order/' + id,
    method: 'get'
  })
}

// 新增检测订单
export function addOrder(data) {
  return request({
    url: '/order/order',
    method: 'post',
    data: data
  })
}


// 查询需求系统中的待检测订单
export function queryBizTask(data) {
  return request({
    url: '/order/order/queryBizTask',
    method: 'post',
    data: data
  })
}

// 修改检测订单
export function updateOrder(data) {
  return request({
    url: '/order/order',
    method: 'put',
    data: data
  })
}

// 删除检测订单
export function delOrder(id) {
  return request({
    url: '/order/order/' + id,
    method: 'delete'
  })
}


// 生产检测订单
export function testingOrder(id) {
  return request({
    url: '/order/order/testingOrder/' + id,
    method: 'get'
  })
}
